package com.warmheart.base.config;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Transactional(
    value = "whTransactionManager",
    propagation = Propagation.REQUIRED,
    rollbackFor = Exception.class)
public @interface WhTransactionalControl {}
